package com.myblog.adkblog.controller;

import com.myblog.adkblog.service.FollowService;
import com.myblog.adkblog.vo.Common.Result;
import com.myblog.adkblog.vo.Params.PageParams;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * 日期: 2024年10月17日
 * 时间: 23:31
 * 作者: XinForever
 */
@RestController
@RequestMapping("follow")
@Api(tags="追番相关Api")
public class FollowController {

    @Autowired
    private FollowService followService;

    @ApiOperation("获取在看的番剧")
    @GetMapping("/myfollow")
    public Result myfollow(Integer status){
        return Result.success(followService.myfollow(status));
    }

    @GetMapping("/followdetail")
    public Result followdetail(Long animeId){
        return Result.success(followService.followdetail(animeId));
    }

}
